<template>
  <TableLayout>
    <Info :currentProject="currentProject" @update="getSubsidyStandard" class="subsidy-info" />
    <!-- <Standard
      class="house-holder"
      :standardData="standardList"
    /> -->
  </TableLayout>
</template>

<script>
// 演示如何使用 this.$dialog 封装 modal 组件

import AreaTree from '@/components/src/AreaTree'
import { TableLayout } from '@/layouts'
// import Standard from './Standard.vue'
import Info from './Info.vue'
import { subsidyServices } from '@/common/services/subsidy'

export default {
  name: 'StandardList',
  components: {
    AreaTree,
    TableLayout,
    // Standard,
    Info
  },
  data () {
    return {
      standardList: [],
      currentProject: {
        task_id: '',
        task_nam: '',
        task_doc: '',
        s_a_nams: ''
      }
    }
  },
  mounted () {
    this.getSubsidyStandard()
  },
  methods: {
    // 获取项目信息
    getSubsidyStandard () {
      subsidyServices.getSubsidyStandard().then(res => {
        this.currentProject = res.data || {}
        this.standardList = res.data.pay_info || []
      })
    }
  }
}
</script>

<style lang="less" scoped>
.subsidy-info {
  width: 1000px;
  margin: 0 auto;
}
</style>
